//
//  LOLAllheroCollectionViewCell.m
//  LOLXXbox
//
//  Created by mac on 16/2/26.
//  Copyright © 2016年 Grasstrio. All rights reserved.
//

#import "LOLAllheroCollectionViewCell.h"
#import <Masonry.h>
#import <UIImageView+WebCache.h>
#define CONTENTWIDTH  self.contentView.frame.size.width
#define CONTENTHEIGHT  self.contentView.frame.size.height
#define WIDTH [[UIScreen mainScreen]bounds].size.width

@implementation LOLAllheroCollectionViewCell


-(instancetype)initWithFrame:(CGRect)frame
{
    if (self=[super initWithFrame:frame]) {
        self.heroImageView=[[UIImageView alloc]initWithFrame:CGRectMake(10, 0,CONTENTWIDTH-WIDTH/18.75, CONTENTWIDTH-WIDTH/18.75)];
        [self.contentView addSubview:self.heroImageView];

        
        self.cnName=[[UILabel alloc]initWithFrame:CGRectMake(0, CONTENTWIDTH-WIDTH/18.75, CONTENTWIDTH, CONTENTHEIGHT-CONTENTWIDTH+WIDTH/18.75)];
        self.cnName.textAlignment=NSTextAlignmentCenter;
        self.cnName.font=[UIFont boldSystemFontOfSize:12];
        self.cnName.lineBreakMode=NSLineBreakByTruncatingMiddle;
        [self.contentView addSubview:self.cnName];

        
        
        
        
    }
    return self;
    
}


@end
